package com.flying.client.network;

import com.flying.client.network.msg.ORMsg;

public interface INetworkSink {
	
	void registerMsgHandler(short msgType,IMsgHandler msgHandler);
	
	void unregisterMsgHandler(short msgid);
	
	void onConnected(NetworkResult result);
	
	void onClosed(NetworkResult result);
	
	void onPaused(NetworkResult result);
	
	void onDisConnectioned(NetworkResult result);
	
	void onError(Throwable throwable,NetworkClient client);
	
	void onReceivedMsg(ORMsg msg);
}
